import React from 'react'
import { Carousel } from 'antd-mobile';
import './Banner.less'
 function Banner(props) {
    // 取出数据
    let { Bannerlist } = props
    return (
        <div className="banner">
        <Carousel
          autoplay={true}
          infinite
        >
          {/* 遍历 */}
          {Bannerlist.map((item) => (
              <img
              key={item.id}
                src={item.img}
                alt=""
              />
          ))}
        </Carousel>
      </div>
    )
}
export default React.memo(Banner)
